import { Badge, Space } from 'antd';

interface Props {
  disable: 0 | 1;
}

export default function Status({ disable }: Props) {
  return (
    <>
      {disable === 0 ? (
        <Space>
          <Badge status="success" />
          已启用
        </Space>
      ) : (
        <Space>
          <Badge status="default" />
          已禁用
        </Space>
      )}
    </>
  );
}
